<?php require VIEW_ROOT.'/common/header.php'?>

<div class="info">
	登录日志
</div>

<table>
	<tr>
		<th width="200">登录时间</th>
		<th width="200">IP</th>
		<th>日志信息</th>
	</tr>
	<?php foreach ($res as $row) {?>
		<tr>
			<td><?php echo date('Y-m-d H:i', $row['create_time'])?></td>
			<td><a href="http://www.baidu.com/baidu?word=<?php echo $row['ip']?>" target="_blank"><?php echo $row['ip']?></a></td>
			<td class="frm"><?php echo str_replace('Login Fail', '<span style="font-weight:bold;color:#ff0000;">Login Fail</span>', $row['body'])?></td>
		</tr>
	<?php }?>
</table>

<?php require VIEW_ROOT.'/common/footer.php'?>